package com.tfjybj.itoo.exam.provider.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tfjybj.itoo.exam.entity.EvaluationSubEntity;
import com.tfjybj.itoo.exam.model.EvaluationSubModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * TeEvaluationSubDao接口
 * teEvaluationSub表
 *
 * @author 杨江涛
 * @version 2.0.0
 * @since 2.0.0 2018-12-18 18:19:48
 */
@Repository("teEvaluationSubDao")
public interface EvaluationSubDao extends BaseMapper<EvaluationSubEntity> {

    /**
     *  根据题干id查询sub表的选项数据
     * @param mainId 题干id
     * @author 杨江涛
     * @return sub表model
     * @since 2019-1-17 17:37:39
     */
    List<EvaluationSubModel> querySubInfoByMainId(@Param("mainId") String mainId);
}
